﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmployeeProject
{
    abstract class Employee
    {
        public string Name { get; private set; }

        public Employee(string name)
        {
            if (String.IsNullOrWhiteSpace(name))
                throw new ArgumentNullException("Employee name empty");
            Name = name;
        }
        abstract public void CalculateSalary();

        abstract public void PrintToConsole();
    }
}
